package com.alibaba.algo.components.permission.service;

import com.alibaba.algo.core.contant.SysConstant;

/**
 * Created by IntelliJ IDEA.
 * User: glorysongglory
 * Date: 2020/11/6
 * Time: 11:00
 */
public class RedisKeyService {

    public static final String getJwtTokenKey(String token) {
        return SysConstant.SYS_PERMISSION_JWT_TOKEN + ":" + token + ":";
    }

    public static final String getSysUserKey(Long userId) {
        return SysConstant.SYS_PERMISSION_USER + userId + ":";
    }

    public static final String getSysUserTokenKey(Long userId) {
        return SysConstant.SYS_PERMISSION_USER_TOKEN + userId + ":";
    }


}
